import request from '@/utils/request'

// 查询每日感悟列表
export function listReflection(query) {
  return request({
    url: '/wx/reflection/list',
    method: 'get',
    params: query
  })
}

// 查询每日感悟详细
export function getReflection(id) {
  return request({
    url: '/wx/reflection/' + id,
    method: 'get'
  })
}

// 新增每日感悟
export function addReflection(data) {
  return request({
    url: '/wx/reflection',
    method: 'post',
    data: data
  })
}

// 修改每日感悟
export function updateReflection(data) {
  return request({
    url: '/wx/reflection',
    method: 'put',
    data: data
  })
}

// 删除每日感悟
export function delReflection(id) {
  return request({
    url: '/wx/reflection/' + id,
    method: 'delete'
  })
}
